package com.kfm.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.io.IOException;

@Controller
public class UploadController {

    public String upload( MultipartFile file){
        try {
            file.transferTo(new File("e://temp//1.jpg"));
        } catch (IOException e) {
            e.printStackTrace();
        }
        return "上传成功";
    }
}
